<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>tmrctr: Tmrctr_v4_0</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">tmrctr
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Tmrctr_v4_0</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_tmr_ctr___config.html">XTmrCtr_Config</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_tmr_ctr_stats.html">XTmrCtrStats</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gaba99b973ef1f13bf0a2716cf52ca5319"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>&#160;&#160;&#160;2</td></tr>
<tr class="separator:gaba99b973ef1f13bf0a2716cf52ca5319"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaea427162ce7e92fd08afb7ee1cc1c12e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>(BaseAddress,  TmrCtrNumber,  RegOffset)</td></tr>
<tr class="separator:gaea427162ce7e92fd08afb7ee1cc1c12e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga56d9c2d54afce39c3693356e3892547f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>(BaseAddress,  TmrCtrNumber,  RegOffset,  ValueToWrite)</td></tr>
<tr class="separator:ga56d9c2d54afce39c3693356e3892547f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga74c246c9f5ac5fb8793f0f792bc8fa0e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga74c246c9f5ac5fb8793f0f792bc8fa0e">XTmrCtr_SetControlStatusReg</a>(BaseAddress,  TmrCtrNumber,  RegisterValue)</td></tr>
<tr class="separator:ga74c246c9f5ac5fb8793f0f792bc8fa0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga45ca70c55615831432d0a2b32e0e77af"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga45ca70c55615831432d0a2b32e0e77af">XTmrCtr_GetControlStatusReg</a>(BaseAddress,  TmrCtrNumber)&#160;&#160;&#160;<a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber), <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>)</td></tr>
<tr class="separator:ga45ca70c55615831432d0a2b32e0e77af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa6ab051d2011676e6cc3ea8fbc4ec6da"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaa6ab051d2011676e6cc3ea8fbc4ec6da">XTmrCtr_GetTimerCounterReg</a>(BaseAddress,  TmrCtrNumber)&#160;&#160;&#160;<a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber), <a class="el" href="group__tmrctr__v4__0.html#gad054cd3c12bc686f9be366e093c2f97a">XTC_TCR_OFFSET</a>) \</td></tr>
<tr class="separator:gaa6ab051d2011676e6cc3ea8fbc4ec6da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga66eee1751bc9d207eef8143492669c96"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga66eee1751bc9d207eef8143492669c96">XTmrCtr_SetLoadReg</a>(BaseAddress,  TmrCtrNumber,  RegisterValue)</td></tr>
<tr class="separator:ga66eee1751bc9d207eef8143492669c96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga248be00d1ff730871bf8201143dc1480"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga248be00d1ff730871bf8201143dc1480">XTmrCtr_GetLoadReg</a>(BaseAddress,  TmrCtrNumber)&#160;&#160;&#160;<a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber), <a class="el" href="group__tmrctr__v4__0.html#ga38a380fdcb3114c3db51524a8182c4ad">XTC_TLR_OFFSET</a>)</td></tr>
<tr class="separator:ga248be00d1ff730871bf8201143dc1480"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf312964acd6f01aeed63981877c63e8e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaf312964acd6f01aeed63981877c63e8e">XTmrCtr_Enable</a>(BaseAddress,  TmrCtrNumber)    </td></tr>
<tr class="separator:gaf312964acd6f01aeed63981877c63e8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae5874bbf23d48004ab15acd250a34688"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gae5874bbf23d48004ab15acd250a34688">XTmrCtr_Disable</a>(BaseAddress,  TmrCtrNumber)</td></tr>
<tr class="separator:gae5874bbf23d48004ab15acd250a34688"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaee205a5d80c200eb12b99b2d99837891"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaee205a5d80c200eb12b99b2d99837891">XTmrCtr_EnableIntr</a>(BaseAddress,  TmrCtrNumber)    </td></tr>
<tr class="separator:gaee205a5d80c200eb12b99b2d99837891"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5c712d9f0122fd56355fec99a9c8c1c3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga5c712d9f0122fd56355fec99a9c8c1c3">XTmrCtr_DisableIntr</a>(BaseAddress,  TmrCtrNumber)  </td></tr>
<tr class="separator:ga5c712d9f0122fd56355fec99a9c8c1c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga433680f98acc79f69d227a041f20ecb9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga433680f98acc79f69d227a041f20ecb9">XTmrCtr_LoadTimerCounterReg</a>(BaseAddress,  TmrCtrNumber)</td></tr>
<tr class="separator:ga433680f98acc79f69d227a041f20ecb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6bbcadfe43a528d4d895650bee25a4e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gac6bbcadfe43a528d4d895650bee25a4e">XTmrCtr_HasEventOccurred</a>(BaseAddress,  TmrCtrNumber)</td></tr>
<tr class="separator:gac6bbcadfe43a528d4d895650bee25a4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga60d20c9562b95591c9d6000b21747135"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga60d20c9562b95591c9d6000b21747135">XTmrCtr_Handler</a>) (void *CallBackRef, u8 TmrCtrNumber)</td></tr>
<tr class="separator:ga60d20c9562b95591c9d6000b21747135"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga5186828a046cd32bbf69874524e983d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga5186828a046cd32bbf69874524e983d2">XTmrCtr_CfgInitialize</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, <a class="el" href="struct_x_tmr_ctr___config.html">XTmrCtr_Config</a> *ConfigPtr, u32 EffectiveAddr)</td></tr>
<tr class="separator:ga5186828a046cd32bbf69874524e983d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac3ffcfef4ba4507d5f2b9e17a08c7bf0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gac3ffcfef4ba4507d5f2b9e17a08c7bf0">XTmrCtr_InitHw</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr)</td></tr>
<tr class="separator:gac3ffcfef4ba4507d5f2b9e17a08c7bf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5f9b6172f448d2dd13d1c200ca37928"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gad5f9b6172f448d2dd13d1c200ca37928">XTmrCtr_Initialize</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u16 DeviceId)</td></tr>
<tr class="separator:gad5f9b6172f448d2dd13d1c200ca37928"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga009c17ab4fcedf73279638dd97b6edd4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga009c17ab4fcedf73279638dd97b6edd4">XTmrCtr_Start</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber)</td></tr>
<tr class="separator:ga009c17ab4fcedf73279638dd97b6edd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab8156ff2a16b8efc0fcd3ed2b7ecf91a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gab8156ff2a16b8efc0fcd3ed2b7ecf91a">XTmrCtr_Stop</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber)</td></tr>
<tr class="separator:gab8156ff2a16b8efc0fcd3ed2b7ecf91a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga325269055bb6f9f7a0c7f703bd2f2174"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga325269055bb6f9f7a0c7f703bd2f2174">XTmrCtr_GetValue</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber)</td></tr>
<tr class="separator:ga325269055bb6f9f7a0c7f703bd2f2174"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga74b790866611a3ab1e96700feb48f6ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga74b790866611a3ab1e96700feb48f6ea">XTmrCtr_SetResetValue</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber, u32 ResetValue)</td></tr>
<tr class="separator:ga74b790866611a3ab1e96700feb48f6ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad8f339bdf71ed11fa92f08720c9ce663"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gad8f339bdf71ed11fa92f08720c9ce663">XTmrCtr_GetCaptureValue</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber)</td></tr>
<tr class="separator:gad8f339bdf71ed11fa92f08720c9ce663"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa7b4ca5a0ac2199ee5341fddd8056500"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaa7b4ca5a0ac2199ee5341fddd8056500">XTmrCtr_Reset</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber)</td></tr>
<tr class="separator:gaa7b4ca5a0ac2199ee5341fddd8056500"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga44d19561a31682753e4996c7b57d6982"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga44d19561a31682753e4996c7b57d6982">XTmrCtr_IsExpired</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber)</td></tr>
<tr class="separator:ga44d19561a31682753e4996c7b57d6982"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga59bced86622b77630d18e731fbcec7f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_tmr_ctr___config.html">XTmrCtr_Config</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga59bced86622b77630d18e731fbcec7f5">XTmrCtr_LookupConfig</a> (u16 DeviceId)</td></tr>
<tr class="separator:ga59bced86622b77630d18e731fbcec7f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga93d796cf55144d6adb3c51fedf6c3b76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga93d796cf55144d6adb3c51fedf6c3b76">XTmrCtr_SetOptions</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber, u32 Options)</td></tr>
<tr class="separator:ga93d796cf55144d6adb3c51fedf6c3b76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaff209dc01c2946c239c6e5c1bdc1a5b"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaaff209dc01c2946c239c6e5c1bdc1a5b">XTmrCtr_GetOptions</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber)</td></tr>
<tr class="separator:gaaff209dc01c2946c239c6e5c1bdc1a5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c99744f99aef2a019616e712206f1b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga3c99744f99aef2a019616e712206f1b0">XTmrCtr_GetStats</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, <a class="el" href="struct_x_tmr_ctr_stats.html">XTmrCtrStats</a> *StatsPtr)</td></tr>
<tr class="separator:ga3c99744f99aef2a019616e712206f1b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6f51d8030e9d1a4edc588b0846e22e49"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga6f51d8030e9d1a4edc588b0846e22e49">XTmrCtr_ClearStats</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr)</td></tr>
<tr class="separator:ga6f51d8030e9d1a4edc588b0846e22e49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga42b972b6d7ae5d18a9bb2ca99446b1e7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, u8 TmrCtrNumber)</td></tr>
<tr class="separator:ga42b972b6d7ae5d18a9bb2ca99446b1e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9eb7b372c13b5e3493fec7370858309f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga9eb7b372c13b5e3493fec7370858309f">XTmrCtr_SetHandler</a> (<a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *InstancePtr, <a class="el" href="group__tmrctr__v4__0.html#ga60d20c9562b95591c9d6000b21747135">XTmrCtr_Handler</a> FuncPtr, void *CallBackRef)</td></tr>
<tr class="separator:ga9eb7b372c13b5e3493fec7370858309f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2c00e99b19f58b5821c5541069ffb20b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler</a> (void *InstancePtr)</td></tr>
<tr class="separator:ga2c00e99b19f58b5821c5541069ffb20b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Configuration options</h2></td></tr>
<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrp50f33d14f129e4548c1c270fd6725a78"></a>These options are used in <a class="el" href="group__tmrctr__v4__0.html#ga93d796cf55144d6adb3c51fedf6c3b76" title="Enables the specified options for the specified timer counter. ">XTmrCtr_SetOptions()</a> and <a class="el" href="group__tmrctr__v4__0.html#gaaff209dc01c2946c239c6e5c1bdc1a5b" title="Get the options for the specified timer counter. ">XTmrCtr_GetOptions()</a> </p>
</td></tr>
<tr class="memitem:ga4fb085742ee50628791c81ff9a14bc2c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga4fb085742ee50628791c81ff9a14bc2c">XTC_CASCADE_MODE_OPTION</a>&#160;&#160;&#160;0x00000080UL</td></tr>
<tr class="separator:ga4fb085742ee50628791c81ff9a14bc2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Control Status Register Bit Definitions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p><a class="anchor" id="amgrp77718337863d9bf57fe00a0d3574ed3d"></a>Control Status Register bit masks Used to configure the timer counter device. </p>
</td></tr>
<tr class="memitem:ga2744df54b0fc4bc5df1dba14a6afc840"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga2744df54b0fc4bc5df1dba14a6afc840">XTC_CSR_INT_OCCURED_MASK</a>&#160;&#160;&#160;0x00000100</td></tr>
<tr class="separator:ga2744df54b0fc4bc5df1dba14a6afc840"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0e56ed788d0a3f4b6d89319e03797002"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga0e56ed788d0a3f4b6d89319e03797002">XTC_CSR_ENABLE_INT_MASK</a>&#160;&#160;&#160;0x00000040</td></tr>
<tr class="separator:ga0e56ed788d0a3f4b6d89319e03797002"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa10a23e3e387b53bac89f97cc5adf455"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaa10a23e3e387b53bac89f97cc5adf455">XTC_CSR_LOAD_MASK</a>&#160;&#160;&#160;0x00000020</td></tr>
<tr class="separator:gaa10a23e3e387b53bac89f97cc5adf455"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab06d844c7a245c7be88a63f3559bbd46"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gab06d844c7a245c7be88a63f3559bbd46">XTC_CSR_AUTO_RELOAD_MASK</a>&#160;&#160;&#160;0x00000010</td></tr>
<tr class="separator:gab06d844c7a245c7be88a63f3559bbd46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadcf0bfbbe0244d0fc208c783858a9c5c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gadcf0bfbbe0244d0fc208c783858a9c5c">XTC_CSR_EXT_CAPTURE_MASK</a>&#160;&#160;&#160;0x00000008</td></tr>
<tr class="separator:gadcf0bfbbe0244d0fc208c783858a9c5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2345d81184385344ae236b8aa99f2423"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga2345d81184385344ae236b8aa99f2423">XTC_CSR_EXT_GENERATE_MASK</a>&#160;&#160;&#160;0x00000004</td></tr>
<tr class="separator:ga2345d81184385344ae236b8aa99f2423"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6b40b30b1d1d5b07f4101a5b657dddba"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#ga6b40b30b1d1d5b07f4101a5b657dddba">XTC_CSR_DOWN_COUNT_MASK</a>&#160;&#160;&#160;0x00000002</td></tr>
<tr class="separator:ga6b40b30b1d1d5b07f4101a5b657dddba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa0563f5483d9fef6126df6b2e447da08"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tmrctr__v4__0.html#gaa0563f5483d9fef6126df6b2e447da08">XTC_CSR_CAPTURE_MODE_MASK</a>&#160;&#160;&#160;0x00000001</td></tr>
<tr class="separator:gaa0563f5483d9fef6126df6b2e447da08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ga4fb085742ee50628791c81ff9a14bc2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CASCADE_MODE_OPTION&#160;&#160;&#160;0x00000080UL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Used to configure the timer counter device. </p>
<pre>
XTC_CASCADE_MODE_OPTION	Enables the Cascade Mode only valid for TCSRO.
XTC_ENABLE_ALL_OPTION	Enables all timer counters at once.
XTC_DOWN_COUNT_OPTION	Configures the timer counter to count down from
			start value, the default is to count up.
XTC_CAPTURE_MODE_OPTION	Configures the timer to capture the timer
			counter value when the external capture line is
			asserted. The default mode is compare mode.
XTC_INT_MODE_OPTION		Enables the timer counter interrupt output.
XTC_AUTO_RELOAD_OPTION	In compare mode, configures the timer counter to
			reload from the compare value. The default mode
			causes the timer counter to hold when the
			compare value is hit.
			In capture mode, configures the timer counter to
			not hold the previous capture value if a new
			event occurs. The default mode cause the timer
			counter to hold the capture value until
			recognized.
XTC_EXT_COMPARE_OPTION	Enables the external compare output signal.
</pre>
</div>
</div>
<a class="anchor" id="gab06d844c7a245c7be88a63f3559bbd46"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_AUTO_RELOAD_MASK&#160;&#160;&#160;0x00000010</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>In compare mode, configures the timer counter to reload from the Load Register. </p>
<p>The default mode causes the timer counter to hold when the compare value is hit. In capture mode, configures the timer counter to not hold the previous capture value if a new event occurs. The default mode cause the timer counter to hold the capture value until recognized. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>.</p>

</div>
</div>
<a class="anchor" id="gaa0563f5483d9fef6126df6b2e447da08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_CAPTURE_MODE_MASK&#160;&#160;&#160;0x00000001</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Enables the timer to capture the timer counter value when the external capture line is asserted. </p>
<p>The default mode is compare mode. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>.</p>

</div>
</div>
<a class="anchor" id="gaaf3300005339d29c2ee9a79e6bb81959"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_CASC_MASK&#160;&#160;&#160;0x00000800</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Cascade Mode. </p>

</div>
</div>
<a class="anchor" id="ga6b40b30b1d1d5b07f4101a5b657dddba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_DOWN_COUNT_MASK&#160;&#160;&#160;0x00000002</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Configures the timer counter to count down from start value, the default is to count up. </p>

</div>
</div>
<a class="anchor" id="gabfaa1357c7843a1a72c740b017061a38"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_ENABLE_ALL_MASK&#160;&#160;&#160;0x00000400</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Enables all timer counters. </p>

</div>
</div>
<a class="anchor" id="ga0e56ed788d0a3f4b6d89319e03797002"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_ENABLE_INT_MASK&#160;&#160;&#160;0x00000040</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Enables the interrupt output. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>.</p>

</div>
</div>
<a class="anchor" id="gaa6304f96140472ea199517984b5a18d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_ENABLE_PWM_MASK&#160;&#160;&#160;0x00000200</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Enables the Pulse Width Modulation. </p>

</div>
</div>
<a class="anchor" id="gaa7cbbacf96f3f51bcd12d5826b03e620"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_ENABLE_TMR_MASK&#160;&#160;&#160;0x00000080</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Enables only the specific timer. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga009c17ab4fcedf73279638dd97b6edd4">XTmrCtr_Start()</a>, and <a class="el" href="group__tmrctr__v4__0.html#gab8156ff2a16b8efc0fcd3ed2b7ecf91a">XTmrCtr_Stop()</a>.</p>

</div>
</div>
<a class="anchor" id="gadcf0bfbbe0244d0fc208c783858a9c5c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_EXT_CAPTURE_MASK&#160;&#160;&#160;0x00000008</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Enables the external input to the timer counter. </p>

</div>
</div>
<a class="anchor" id="ga2345d81184385344ae236b8aa99f2423"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_EXT_GENERATE_MASK&#160;&#160;&#160;0x00000004</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Enables the external generate output for the timer. </p>

</div>
</div>
<a class="anchor" id="ga2744df54b0fc4bc5df1dba14a6afc840"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_INT_OCCURED_MASK&#160;&#160;&#160;0x00000100</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>If bit is set, an interrupt has occured. </p>
<p>If set and '1' is written to this bit position, bit is cleared. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gac3ffcfef4ba4507d5f2b9e17a08c7bf0">XTmrCtr_InitHw()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga44d19561a31682753e4996c7b57d6982">XTmrCtr_IsExpired()</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>.</p>

</div>
</div>
<a class="anchor" id="gaa10a23e3e387b53bac89f97cc5adf455"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_CSR_LOAD_MASK&#160;&#160;&#160;0x00000020</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Loads the timer using the load value provided earlier in the Load Register, XTC_TLR_OFFSET. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gac3ffcfef4ba4507d5f2b9e17a08c7bf0">XTmrCtr_InitHw()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7b4ca5a0ac2199ee5341fddd8056500">XTmrCtr_Reset()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga009c17ab4fcedf73279638dd97b6edd4">XTmrCtr_Start()</a>.</p>

</div>
</div>
<a class="anchor" id="gaba99b973ef1f13bf0a2716cf52ca5319"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_DEVICE_TIMER_COUNT&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Defines the number of timer counters within a single hardware device. </p>
<p>This number is not currently parameterized in the hardware but may be in the future. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gad8f339bdf71ed11fa92f08720c9ce663">XTmrCtr_GetCaptureValue()</a>, <a class="el" href="group__tmrctr__v4__0.html#gaaff209dc01c2946c239c6e5c1bdc1a5b">XTmrCtr_GetOptions()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga325269055bb6f9f7a0c7f703bd2f2174">XTmrCtr_GetValue()</a>, <a class="el" href="group__tmrctr__v4__0.html#gac3ffcfef4ba4507d5f2b9e17a08c7bf0">XTmrCtr_InitHw()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga44d19561a31682753e4996c7b57d6982">XTmrCtr_IsExpired()</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7b4ca5a0ac2199ee5341fddd8056500">XTmrCtr_Reset()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga93d796cf55144d6adb3c51fedf6c3b76">XTmrCtr_SetOptions()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga74b790866611a3ab1e96700feb48f6ea">XTmrCtr_SetResetValue()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga009c17ab4fcedf73279638dd97b6edd4">XTmrCtr_Start()</a>, and <a class="el" href="group__tmrctr__v4__0.html#gab8156ff2a16b8efc0fcd3ed2b7ecf91a">XTmrCtr_Stop()</a>.</p>

</div>
</div>
<a class="anchor" id="gad054cd3c12bc686f9be366e093c2f97a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_TCR_OFFSET&#160;&#160;&#160;8</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Timer counter register. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#ga325269055bb6f9f7a0c7f703bd2f2174">XTmrCtr_GetValue()</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>.</p>

</div>
</div>
<a class="anchor" id="ga81c9a818cb57cf5f106cf5a3b7c3c59f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_TCSR_OFFSET&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Control/Status register. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gaaff209dc01c2946c239c6e5c1bdc1a5b">XTmrCtr_GetOptions()</a>, <a class="el" href="group__tmrctr__v4__0.html#gac3ffcfef4ba4507d5f2b9e17a08c7bf0">XTmrCtr_InitHw()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga44d19561a31682753e4996c7b57d6982">XTmrCtr_IsExpired()</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7b4ca5a0ac2199ee5341fddd8056500">XTmrCtr_Reset()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga93d796cf55144d6adb3c51fedf6c3b76">XTmrCtr_SetOptions()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga009c17ab4fcedf73279638dd97b6edd4">XTmrCtr_Start()</a>, and <a class="el" href="group__tmrctr__v4__0.html#gab8156ff2a16b8efc0fcd3ed2b7ecf91a">XTmrCtr_Stop()</a>.</p>

</div>
</div>
<a class="anchor" id="ga38a380fdcb3114c3db51524a8182c4ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTC_TLR_OFFSET&#160;&#160;&#160;4</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Load register. </p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gad8f339bdf71ed11fa92f08720c9ce663">XTmrCtr_GetCaptureValue()</a>, <a class="el" href="group__tmrctr__v4__0.html#gac3ffcfef4ba4507d5f2b9e17a08c7bf0">XTmrCtr_InitHw()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga74b790866611a3ab1e96700feb48f6ea">XTmrCtr_SetResetValue()</a>.</p>

</div>
</div>
<a class="anchor" id="gae5874bbf23d48004ab15acd250a34688"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_Disable</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>((BaseAddress), (TmrCtrNumber), <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, \</div>
<div class="line">                        (<a class="code" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber),\</div>
<div class="line">                        <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>) &amp; ~ <a class="code" href="group__tmrctr__v4__0.html#gaa7cbbacf96f3f51bcd12d5826b03e620">XTC_CSR_ENABLE_TMR_MASK</a>))</div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga56d9c2d54afce39c3693356e3892547f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a></div><div class="ttdeci">#define XTmrCtr_WriteReg(BaseAddress, TmrCtrNumber, RegOffset, ValueToWrite)</div><div class="ttdoc">Write a specified value to a register of a timer counter. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:254</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga81c9a818cb57cf5f106cf5a3b7c3c59f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a></div><div class="ttdeci">#define XTC_TCSR_OFFSET</div><div class="ttdoc">Control/Status register. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:96</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaea427162ce7e92fd08afb7ee1cc1c12e"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a></div><div class="ttdeci">#define XTmrCtr_ReadReg(BaseAddress, TmrCtrNumber, RegOffset)</div><div class="ttdoc">Read one of the timer counter registers. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:231</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaa7cbbacf96f3f51bcd12d5826b03e620"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaa7cbbacf96f3f51bcd12d5826b03e620">XTC_CSR_ENABLE_TMR_MASK</a></div><div class="ttdeci">#define XTC_CSR_ENABLE_TMR_MASK</div><div class="ttdoc">Enables only the specific timer. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:126</div></div>
</div><!-- fragment -->
<p>Disable a timer counter such that it stops running. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void <a class="el" href="group__tmrctr__v4__0.html#gae5874bbf23d48004ab15acd250a34688" title="Disable a timer counter such that it stops running. ">XTmrCtr_Disable(u32 BaseAddress, u8 TmrCtrNumber)</a>; </dd></dl>

</div>
</div>
<a class="anchor" id="ga5c712d9f0122fd56355fec99a9c8c1c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_DisableIntr</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>((BaseAddress), (TmrCtrNumber), <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>,  \</div>
<div class="line">        (<a class="code" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber),            \</div>
<div class="line">                <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>) &amp; ~ <a class="code" href="group__tmrctr__v4__0.html#ga0e56ed788d0a3f4b6d89319e03797002">XTC_CSR_ENABLE_INT_MASK</a>))</div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga56d9c2d54afce39c3693356e3892547f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a></div><div class="ttdeci">#define XTmrCtr_WriteReg(BaseAddress, TmrCtrNumber, RegOffset, ValueToWrite)</div><div class="ttdoc">Write a specified value to a register of a timer counter. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:254</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga81c9a818cb57cf5f106cf5a3b7c3c59f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a></div><div class="ttdeci">#define XTC_TCSR_OFFSET</div><div class="ttdoc">Control/Status register. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:96</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaea427162ce7e92fd08afb7ee1cc1c12e"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a></div><div class="ttdeci">#define XTmrCtr_ReadReg(BaseAddress, TmrCtrNumber, RegOffset)</div><div class="ttdoc">Read one of the timer counter registers. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:231</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga0e56ed788d0a3f4b6d89319e03797002"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga0e56ed788d0a3f4b6d89319e03797002">XTC_CSR_ENABLE_INT_MASK</a></div><div class="ttdeci">#define XTC_CSR_ENABLE_INT_MASK</div><div class="ttdoc">Enables the interrupt output. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:129</div></div>
</div><!-- fragment -->
<p>Disable the interrupt for a timer counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void <a class="el" href="group__tmrctr__v4__0.html#ga5c712d9f0122fd56355fec99a9c8c1c3" title="Disable the interrupt for a timer counter. ">XTmrCtr_DisableIntr(u32 BaseAddress, u8 TmrCtrNumber)</a>; </dd></dl>

</div>
</div>
<a class="anchor" id="gaf312964acd6f01aeed63981877c63e8e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_Enable</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>((BaseAddress), (TmrCtrNumber), <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>,   \</div>
<div class="line">                        (<a class="code" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), ( TmrCtrNumber), \</div>
<div class="line">                        <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>) | <a class="code" href="group__tmrctr__v4__0.html#gaa7cbbacf96f3f51bcd12d5826b03e620">XTC_CSR_ENABLE_TMR_MASK</a>))</div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga56d9c2d54afce39c3693356e3892547f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a></div><div class="ttdeci">#define XTmrCtr_WriteReg(BaseAddress, TmrCtrNumber, RegOffset, ValueToWrite)</div><div class="ttdoc">Write a specified value to a register of a timer counter. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:254</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga81c9a818cb57cf5f106cf5a3b7c3c59f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a></div><div class="ttdeci">#define XTC_TCSR_OFFSET</div><div class="ttdoc">Control/Status register. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:96</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaea427162ce7e92fd08afb7ee1cc1c12e"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a></div><div class="ttdeci">#define XTmrCtr_ReadReg(BaseAddress, TmrCtrNumber, RegOffset)</div><div class="ttdoc">Read one of the timer counter registers. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:231</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaa7cbbacf96f3f51bcd12d5826b03e620"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaa7cbbacf96f3f51bcd12d5826b03e620">XTC_CSR_ENABLE_TMR_MASK</a></div><div class="ttdeci">#define XTC_CSR_ENABLE_TMR_MASK</div><div class="ttdoc">Enables only the specific timer. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:126</div></div>
</div><!-- fragment -->
<p>Enable a timer counter such that it starts running. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void <a class="el" href="group__tmrctr__v4__0.html#gaf312964acd6f01aeed63981877c63e8e" title="Enable a timer counter such that it starts running. ">XTmrCtr_Enable(u32 BaseAddress, u8 TmrCtrNumber)</a>; </dd></dl>

</div>
</div>
<a class="anchor" id="gaee205a5d80c200eb12b99b2d99837891"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_EnableIntr</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>((BaseAddress), (TmrCtrNumber), <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>,   \</div>
<div class="line">                        (<a class="code" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber),  \</div>
<div class="line">                        <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>) | <a class="code" href="group__tmrctr__v4__0.html#ga0e56ed788d0a3f4b6d89319e03797002">XTC_CSR_ENABLE_INT_MASK</a>))</div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga56d9c2d54afce39c3693356e3892547f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a></div><div class="ttdeci">#define XTmrCtr_WriteReg(BaseAddress, TmrCtrNumber, RegOffset, ValueToWrite)</div><div class="ttdoc">Write a specified value to a register of a timer counter. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:254</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga81c9a818cb57cf5f106cf5a3b7c3c59f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a></div><div class="ttdeci">#define XTC_TCSR_OFFSET</div><div class="ttdoc">Control/Status register. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:96</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaea427162ce7e92fd08afb7ee1cc1c12e"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a></div><div class="ttdeci">#define XTmrCtr_ReadReg(BaseAddress, TmrCtrNumber, RegOffset)</div><div class="ttdoc">Read one of the timer counter registers. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:231</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga0e56ed788d0a3f4b6d89319e03797002"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga0e56ed788d0a3f4b6d89319e03797002">XTC_CSR_ENABLE_INT_MASK</a></div><div class="ttdeci">#define XTC_CSR_ENABLE_INT_MASK</div><div class="ttdoc">Enables the interrupt output. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:129</div></div>
</div><!-- fragment -->
<p>Enable the interrupt for a timer counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void <a class="el" href="group__tmrctr__v4__0.html#gaee205a5d80c200eb12b99b2d99837891" title="Enable the interrupt for a timer counter. ">XTmrCtr_EnableIntr(u32 BaseAddress, u8 TmrCtrNumber)</a>; </dd></dl>

</div>
</div>
<a class="anchor" id="ga45ca70c55615831432d0a2b32e0e77af"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_GetControlStatusReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber), <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Get the Control Status Register of a timer counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value read from the register, a 32 bit value.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 XTmrCtr_GetControlStatusReg(u32 BaseAddress, u8 TmrCtrNumber); </dd></dl>

</div>
</div>
<a class="anchor" id="ga248be00d1ff730871bf8201143dc1480"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_GetLoadReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber), <a class="el" href="group__tmrctr__v4__0.html#ga38a380fdcb3114c3db51524a8182c4ad">XTC_TLR_OFFSET</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Get the Load Register of a timer counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value read from the register, a 32 bit value.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 <a class="el" href="group__tmrctr__v4__0.html#ga248be00d1ff730871bf8201143dc1480" title="Get the Load Register of a timer counter. ">XTmrCtr_GetLoadReg(u32 BaseAddress, u8 TmrCtrNumber)</a>; </dd></dl>

</div>
</div>
<a class="anchor" id="gaa6ab051d2011676e6cc3ea8fbc4ec6da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_GetTimerCounterReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber), <a class="el" href="group__tmrctr__v4__0.html#gad054cd3c12bc686f9be366e093c2f97a">XTC_TCR_OFFSET</a>) \</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>

<p>Get the Timer Counter Register of a timer counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value read from the register, a 32 bit value.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 XTmrCtr_GetTimerCounterReg(u32 BaseAddress, u8 TmrCtrNumber); </dd></dl>

</div>
</div>
<a class="anchor" id="gac6bbcadfe43a528d4d895650bee25a4e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_HasEventOccurred</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">((<a class="code" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber),        \</div>
<div class="line">                <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>) &amp; <a class="code" href="group__tmrctr__v4__0.html#ga2744df54b0fc4bc5df1dba14a6afc840">XTC_CSR_INT_OCCURED_MASK</a>) ==         \</div>
<div class="line">                <a class="code" href="group__tmrctr__v4__0.html#ga2744df54b0fc4bc5df1dba14a6afc840">XTC_CSR_INT_OCCURED_MASK</a>)</div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga81c9a818cb57cf5f106cf5a3b7c3c59f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a></div><div class="ttdeci">#define XTC_TCSR_OFFSET</div><div class="ttdoc">Control/Status register. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:96</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaea427162ce7e92fd08afb7ee1cc1c12e"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a></div><div class="ttdeci">#define XTmrCtr_ReadReg(BaseAddress, TmrCtrNumber, RegOffset)</div><div class="ttdoc">Read one of the timer counter registers. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:231</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga2744df54b0fc4bc5df1dba14a6afc840"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga2744df54b0fc4bc5df1dba14a6afc840">XTC_CSR_INT_OCCURED_MASK</a></div><div class="ttdeci">#define XTC_CSR_INT_OCCURED_MASK</div><div class="ttdoc">If bit is set, an interrupt has occured. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:115</div></div>
</div><!-- fragment -->
<p>Determine if a timer counter event has occurred. </p>
<p>Events are defined to be when a capture has occurred or the counter has roller over.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: int <a class="el" href="group__tmrctr__v4__0.html#gac6bbcadfe43a528d4d895650bee25a4e" title="Determine if a timer counter event has occurred. ">XTmrCtr_HasEventOccurred(u32 BaseAddress, u8 TmrCtrNumber)</a>; </dd></dl>

</div>
</div>
<a class="anchor" id="ga433680f98acc79f69d227a041f20ecb9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_LoadTimerCounterReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>((BaseAddress), (TmrCtrNumber), <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, \</div>
<div class="line">                        (<a class="code" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>((BaseAddress), (TmrCtrNumber),\</div>
<div class="line">                        <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>) | <a class="code" href="group__tmrctr__v4__0.html#gaa10a23e3e387b53bac89f97cc5adf455">XTC_CSR_LOAD_MASK</a>))</div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga56d9c2d54afce39c3693356e3892547f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a></div><div class="ttdeci">#define XTmrCtr_WriteReg(BaseAddress, TmrCtrNumber, RegOffset, ValueToWrite)</div><div class="ttdoc">Write a specified value to a register of a timer counter. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:254</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga81c9a818cb57cf5f106cf5a3b7c3c59f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a></div><div class="ttdeci">#define XTC_TCSR_OFFSET</div><div class="ttdoc">Control/Status register. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:96</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaea427162ce7e92fd08afb7ee1cc1c12e"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a></div><div class="ttdeci">#define XTmrCtr_ReadReg(BaseAddress, TmrCtrNumber, RegOffset)</div><div class="ttdoc">Read one of the timer counter registers. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:231</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_gaa10a23e3e387b53bac89f97cc5adf455"><div class="ttname"><a href="group__tmrctr__v4__0.html#gaa10a23e3e387b53bac89f97cc5adf455">XTC_CSR_LOAD_MASK</a></div><div class="ttdeci">#define XTC_CSR_LOAD_MASK</div><div class="ttdoc">Loads the timer using the load value provided earlier in the Load Register, XTC_TLR_OFFSET. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:132</div></div>
</div><!-- fragment -->
<p>Cause the timer counter to load it's Timer Counter Register with the value in the Load Register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void XTmrCtr_LoadTimerCounterReg(u32 BaseAddress, u8 TmrCtrNumber); </dd></dl>

</div>
</div>
<a class="anchor" id="gaea427162ce7e92fd08afb7ee1cc1c12e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_ReadReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">RegOffset&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">Xil_In32((BaseAddress) + XTmrCtr_Offsets[(TmrCtrNumber)] + \</div>
<div class="line">                        (RegOffset))</div>
</div><!-- fragment -->
<p>Read one of the timer counter registers. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>contains the base address of the timer counter device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>contains the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1). </td></tr>
    <tr><td class="paramname">RegOffset</td><td>contains the offset from the 1st register of the timer counter to select the specific register of the timer counter.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value read from the register, a 32 bit value.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: u32 XTmrCtr_ReadReg(u32 BaseAddress, u8 TimerNumber, unsigned RegOffset); </dd></dl>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gad8f339bdf71ed11fa92f08720c9ce663">XTmrCtr_GetCaptureValue()</a>, <a class="el" href="group__tmrctr__v4__0.html#gaaff209dc01c2946c239c6e5c1bdc1a5b">XTmrCtr_GetOptions()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga325269055bb6f9f7a0c7f703bd2f2174">XTmrCtr_GetValue()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga44d19561a31682753e4996c7b57d6982">XTmrCtr_IsExpired()</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7b4ca5a0ac2199ee5341fddd8056500">XTmrCtr_Reset()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga009c17ab4fcedf73279638dd97b6edd4">XTmrCtr_Start()</a>, and <a class="el" href="group__tmrctr__v4__0.html#gab8156ff2a16b8efc0fcd3ed2b7ecf91a">XTmrCtr_Stop()</a>.</p>

</div>
</div>
<a class="anchor" id="ga74c246c9f5ac5fb8793f0f792bc8fa0e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_SetControlStatusReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">RegisterValue&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>((BaseAddress), (TmrCtrNumber), <a class="code" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>,     \</div>
<div class="line">                                           (RegisterValue))</div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga56d9c2d54afce39c3693356e3892547f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a></div><div class="ttdeci">#define XTmrCtr_WriteReg(BaseAddress, TmrCtrNumber, RegOffset, ValueToWrite)</div><div class="ttdoc">Write a specified value to a register of a timer counter. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:254</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga81c9a818cb57cf5f106cf5a3b7c3c59f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a></div><div class="ttdeci">#define XTC_TCSR_OFFSET</div><div class="ttdoc">Control/Status register. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:96</div></div>
</div><!-- fragment -->
<p>Set the Control Status Register of a timer counter to the specified value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1). </td></tr>
    <tr><td class="paramname">RegisterValue</td><td>is the 32 bit value to be written to the register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void XTmrCtr_SetControlStatusReg(u32 BaseAddress, u8 TmrCtrNumber,u32 RegisterValue); </dd></dl>

</div>
</div>
<a class="anchor" id="ga66eee1751bc9d207eef8143492669c96"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_SetLoadReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">RegisterValue&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>((BaseAddress), (TmrCtrNumber), <a class="code" href="group__tmrctr__v4__0.html#ga38a380fdcb3114c3db51524a8182c4ad">XTC_TLR_OFFSET</a>, \</div>
<div class="line">                                           (RegisterValue))</div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga56d9c2d54afce39c3693356e3892547f"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a></div><div class="ttdeci">#define XTmrCtr_WriteReg(BaseAddress, TmrCtrNumber, RegOffset, ValueToWrite)</div><div class="ttdoc">Write a specified value to a register of a timer counter. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:254</div></div>
<div class="ttc" id="group__tmrctr__v4__0_html_ga38a380fdcb3114c3db51524a8182c4ad"><div class="ttname"><a href="group__tmrctr__v4__0.html#ga38a380fdcb3114c3db51524a8182c4ad">XTC_TLR_OFFSET</a></div><div class="ttdeci">#define XTC_TLR_OFFSET</div><div class="ttdoc">Load register. </div><div class="ttdef"><b>Definition:</b> xtmrctr_l.h:97</div></div>
</div><!-- fragment -->
<p>Set the Load Register of a timer counter to the specified value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1). </td></tr>
    <tr><td class="paramname">RegisterValue</td><td>is the 32 bit value to be written to the register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void XTmrCtr_SetLoadReg(u32 BaseAddress, u8 TmrCtrNumber, u32 RegisterValue); </dd></dl>

</div>
</div>
<a class="anchor" id="ga56d9c2d54afce39c3693356e3892547f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XTmrCtr_WriteReg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">BaseAddress, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TmrCtrNumber, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">RegOffset, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ValueToWrite&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__l_8h.html">xtmrctr_l.h</a>&gt;</code></p>
<b>Value:</b><div class="fragment"><div class="line">Xil_Out32(((BaseAddress) + XTmrCtr_Offsets[(TmrCtrNumber)] +    \</div>
<div class="line">                           (RegOffset)), (ValueToWrite))</div>
</div><!-- fragment -->
<p>Write a specified value to a register of a timer counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">BaseAddress</td><td>is the base address of the timer counter device. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the specific timer counter within the device, a zero based number, 0 - (XTC_DEVICE_TIMER_COUNT - 1). </td></tr>
    <tr><td class="paramname">RegOffset</td><td>contain the offset from the 1st register of the timer counter to select the specific register of the timer counter. </td></tr>
    <tr><td class="paramname">ValueToWrite</td><td>is the 32 bit value to be written to the register.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>C-Style signature: void XTmrCtr_WriteReg(u32 BaseAddress, u8 TimerNumber, unsigned RegOffset, u32 ValueToWrite); </dd></dl>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gac3ffcfef4ba4507d5f2b9e17a08c7bf0">XTmrCtr_InitHw()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2c00e99b19f58b5821c5541069ffb20b">XTmrCtr_InterruptHandler()</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7b4ca5a0ac2199ee5341fddd8056500">XTmrCtr_Reset()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga42b972b6d7ae5d18a9bb2ca99446b1e7">XTmrCtr_SelfTest()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga93d796cf55144d6adb3c51fedf6c3b76">XTmrCtr_SetOptions()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga74b790866611a3ab1e96700feb48f6ea">XTmrCtr_SetResetValue()</a>, <a class="el" href="group__tmrctr__v4__0.html#ga009c17ab4fcedf73279638dd97b6edd4">XTmrCtr_Start()</a>, and <a class="el" href="group__tmrctr__v4__0.html#gab8156ff2a16b8efc0fcd3ed2b7ecf91a">XTmrCtr_Stop()</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga60d20c9562b95591c9d6000b21747135"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* XTmrCtr_Handler) (void *CallBackRef, u8 TmrCtrNumber)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Signature for the callback function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">CallBackRef</td><td>is a callback reference passed in by the upper layer when setting the callback functions, and passed back to the upper layer when the callback is invoked. Its type is unimportant to the driver, so it is a void pointer. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the number of the timer/counter within the device. The device typically contains at least two timer/counters. The timer number is a zero based number with a range of 0 to (XTC_DEVICE_TIMER_COUNT - 1). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga5186828a046cd32bbf69874524e983d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_CfgInitialize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr___config.html">XTmrCtr_Config</a> *&#160;</td>
          <td class="paramname"><em>ConfigPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>EffectiveAddr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>This function populates the timer counter's configuration structure and sets some configurations defaults. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">ConfigPtr</td><td>is a pointer to the configuration structure that will be used to copy the settings from. </td></tr>
    <tr><td class="paramname">EffectiveAddr</td><td>is the device base address in the virtual memory space. If the address translation is not used, then the physical address is passed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Unexpected errors may occur if the address mapping is changed after this function is invoked. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr___config.html#a3dfdf86126f37e26d966dda7c8317dcd">XTmrCtr_Config::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a19b7b38862e322c61d95f0f71f325f13">XTmrCtr::CallBackRef</a>, <a class="el" href="struct_x_tmr_ctr.html#a1fc51ca5db0c37e2b9b8db794f8a7496">XTmrCtr::Config</a>, <a class="el" href="struct_x_tmr_ctr.html#a5cc0b10723d9bad1b654dab33ae56c23">XTmrCtr::Handler</a>, <a class="el" href="struct_x_tmr_ctr_stats.html#a3e3996ef053ba44bc8720616f3f4c397">XTmrCtrStats::Interrupts</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, and <a class="el" href="struct_x_tmr_ctr.html#ad5cd023157ffa3ef8881bc88ae6ea26b">XTmrCtr::Stats</a>.</p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gad5f9b6172f448d2dd13d1c200ca37928">XTmrCtr_Initialize()</a>.</p>

</div>
</div>
<a class="anchor" id="ga6f51d8030e9d1a4edc588b0846e22e49"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_ClearStats </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Clear the <a class="el" href="struct_x_tmr_ctr_stats.html" title="Timer/Counter statistics. ">XTmrCtrStats</a> structure for this driver. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr_stats.html#a3e3996ef053ba44bc8720616f3f4c397">XTmrCtrStats::Interrupts</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, and <a class="el" href="struct_x_tmr_ctr.html#ad5cd023157ffa3ef8881bc88ae6ea26b">XTmrCtr::Stats</a>.</p>

</div>
</div>
<a class="anchor" id="gad8f339bdf71ed11fa92f08720c9ce663"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XTmrCtr_GetCaptureValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>Returns the timer counter value that was captured the last time the external capture input was asserted. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current capture value for the indicated timer counter.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga38a380fdcb3114c3db51524a8182c4ad">XTC_TLR_OFFSET</a>, and <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="gaaff209dc01c2946c239c6e5c1bdc1a5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XTmrCtr_GetOptions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Get the options for the specified timer counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
<p>The currently set options. An option which is set to a '1' is enabled and set to a '0' is disabled. The options are bit masks such that multiple options may be set or cleared. The options are described in <a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>.</p>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, and <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga3c99744f99aef2a019616e712206f1b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_GetStats </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr_stats.html">XTmrCtrStats</a> *&#160;</td>
          <td class="paramname"><em>StatsPtr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Get a copy of the <a class="el" href="struct_x_tmr_ctr_stats.html" title="Timer/Counter statistics. ">XTmrCtrStats</a> structure, which contains the current statistics for this driver. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">StatsPtr</td><td>is a pointer to a <a class="el" href="struct_x_tmr_ctr_stats.html" title="Timer/Counter statistics. ">XTmrCtrStats</a> structure which will get a copy of current statistics.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr_stats.html#a3e3996ef053ba44bc8720616f3f4c397">XTmrCtrStats::Interrupts</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, and <a class="el" href="struct_x_tmr_ctr.html#ad5cd023157ffa3ef8881bc88ae6ea26b">XTmrCtr::Stats</a>.</p>

</div>
</div>
<a class="anchor" id="ga325269055bb6f9f7a0c7f703bd2f2174"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XTmrCtr_GetValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>Get the current value of the specified timer counter. </p>
<p>The timer counter may be either incrementing or decrementing based upon the current mode of operation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current value for the timer counter.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#gad054cd3c12bc686f9be366e093c2f97a">XTC_TCR_OFFSET</a>, and <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="gac3ffcfef4ba4507d5f2b9e17a08c7bf0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XTmrCtr_InitHw </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>(Re-)initialzes all timer counters which aren't started already. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if at least one timer counter is stopped.</li>
<li>XST_DEVICE_IS_STARTED otherwise.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="struct_x_tmr_ctr.html#aa273d27a5f60d8b003eb83247aca3341">XTmrCtr::IsStartedTmrCtr0</a>, <a class="el" href="struct_x_tmr_ctr.html#adcc945170ebc1ae68a01ba548ad60b0d">XTmrCtr::IsStartedTmrCtr1</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2744df54b0fc4bc5df1dba14a6afc840">XTC_CSR_INT_OCCURED_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa10a23e3e387b53bac89f97cc5adf455">XTC_CSR_LOAD_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, <a class="el" href="group__tmrctr__v4__0.html#ga38a380fdcb3114c3db51524a8182c4ad">XTC_TLR_OFFSET</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>.</p>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gad5f9b6172f448d2dd13d1c200ca37928">XTmrCtr_Initialize()</a>.</p>

</div>
</div>
<a class="anchor" id="gad5f9b6172f448d2dd13d1c200ca37928"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XTmrCtr_Initialize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>DeviceId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>Initializes a specific timer/counter instance/driver. </p>
<p>Initialize fields of the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> structure, then reset the timer/counter.If a timer is already running then it is not initialized.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">DeviceId</td><td>is the unique id of the device controlled by this <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> component. Passing in a device id associates the generic <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> component to a specific device, as chosen by the caller or application developer.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if initialization was successful</li>
<li>XST_DEVICE_IS_STARTED if the device has already been started</li>
<li>XST_DEVICE_NOT_FOUND if the device doesn't exist</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr___config.html#a3dfdf86126f37e26d966dda7c8317dcd">XTmrCtr_Config::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#aa273d27a5f60d8b003eb83247aca3341">XTmrCtr::IsStartedTmrCtr0</a>, <a class="el" href="struct_x_tmr_ctr.html#adcc945170ebc1ae68a01ba548ad60b0d">XTmrCtr::IsStartedTmrCtr1</a>, <a class="el" href="group__tmrctr__v4__0.html#ga5186828a046cd32bbf69874524e983d2">XTmrCtr_CfgInitialize()</a>, <a class="el" href="group__tmrctr__v4__0.html#gac3ffcfef4ba4507d5f2b9e17a08c7bf0">XTmrCtr_InitHw()</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga59bced86622b77630d18e731fbcec7f5">XTmrCtr_LookupConfig()</a>.</p>

</div>
</div>
<a class="anchor" id="ga2c00e99b19f58b5821c5541069ffb20b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_InterruptHandler </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Interrupt Service Routine (ISR) for the driver. </p>
<p>This function only performs processing for the device and does not save and restore the interrupt context.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>contains a pointer to the timer/counter instance for the interrupt.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a19b7b38862e322c61d95f0f71f325f13">XTmrCtr::CallBackRef</a>, <a class="el" href="struct_x_tmr_ctr.html#a5cc0b10723d9bad1b654dab33ae56c23">XTmrCtr::Handler</a>, <a class="el" href="struct_x_tmr_ctr_stats.html#a3e3996ef053ba44bc8720616f3f4c397">XTmrCtrStats::Interrupts</a>, <a class="el" href="struct_x_tmr_ctr.html#ad5cd023157ffa3ef8881bc88ae6ea26b">XTmrCtr::Stats</a>, <a class="el" href="group__tmrctr__v4__0.html#gab06d844c7a245c7be88a63f3559bbd46">XTC_CSR_AUTO_RELOAD_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa0563f5483d9fef6126df6b2e447da08">XTC_CSR_CAPTURE_MODE_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#ga0e56ed788d0a3f4b6d89319e03797002">XTC_CSR_ENABLE_INT_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7cbbacf96f3f51bcd12d5826b03e620">XTC_CSR_ENABLE_TMR_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2744df54b0fc4bc5df1dba14a6afc840">XTC_CSR_INT_OCCURED_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa10a23e3e387b53bac89f97cc5adf455">XTC_CSR_LOAD_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga44d19561a31682753e4996c7b57d6982"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XTmrCtr_IsExpired </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>Checks if the specified timer counter of the device has expired. </p>
<p>In capture mode, expired is defined as a capture occurred. In compare mode, expired is defined as the timer counter rolled over/under for up/down counting.</p>
<p>When interrupts are enabled, the expiration causes an interrupt. This function is typically used to poll a timer counter to determine when it has expired.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if the timer has expired, and FALSE otherwise.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2744df54b0fc4bc5df1dba14a6afc840">XTC_CSR_INT_OCCURED_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, and <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga59bced86622b77630d18e731fbcec7f5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_tmr_ctr___config.html">XTmrCtr_Config</a> * XTmrCtr_LookupConfig </td>
          <td>(</td>
          <td class="paramtype">u16&#160;</td>
          <td class="paramname"><em>DeviceId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Looks up the device configuration based on the unique device ID. </p>
<p>The table TmrCtr_ConfigTable contains the configuration info for each device in the system.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">DeviceId</td><td>is the unique device ID to search for in the config table.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the configuration that matches the given device ID, or NULL if no match is found.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>Referenced by <a class="el" href="group__tmrctr__v4__0.html#gad5f9b6172f448d2dd13d1c200ca37928">XTmrCtr_Initialize()</a>.</p>

</div>
</div>
<a class="anchor" id="gaa7b4ca5a0ac2199ee5341fddd8056500"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_Reset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>Resets the specified timer counter of the device. </p>
<p>A reset causes the timer counter to set it's value to the reset value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa10a23e3e387b53bac89f97cc5adf455">XTC_CSR_LOAD_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga42b972b6d7ae5d18a9bb2ca99446b1e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XTmrCtr_SelfTest </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Runs a self-test on the driver/device. </p>
<p>This test verifies that the specified timer counter of the device can be enabled and increments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if self-test was successful</li>
</ul>
</dd></dl>
<ul>
<li>XST_FAILURE if the timer is not incrementing.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd></dd></dl>
<p>This is a destructive test using the provided timer. The current settings of the timer are returned to the initialized values and all settings at the time this function is called are overwritten. </p>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7cbbacf96f3f51bcd12d5826b03e620">XTC_CSR_ENABLE_TMR_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#ga2744df54b0fc4bc5df1dba14a6afc840">XTC_CSR_INT_OCCURED_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa10a23e3e387b53bac89f97cc5adf455">XTC_CSR_LOAD_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#gad054cd3c12bc686f9be366e093c2f97a">XTC_TCR_OFFSET</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, <a class="el" href="group__tmrctr__v4__0.html#ga38a380fdcb3114c3db51524a8182c4ad">XTC_TLR_OFFSET</a>, <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga9eb7b372c13b5e3493fec7370858309f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_SetHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__tmrctr__v4__0.html#ga60d20c9562b95591c9d6000b21747135">XTmrCtr_Handler</a>&#160;</td>
          <td class="paramname"><em>FuncPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallBackRef</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Sets the timer callback function, which the driver calls when the specified timer times out. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance . </td></tr>
    <tr><td class="paramname">CallBackRef</td><td>is the upper layer callback reference passed back when the callback function is invoked. </td></tr>
    <tr><td class="paramname">FuncPtr</td><td>is the pointer to the callback function.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd></dd></dl>
<p>The handler is called within interrupt context so the function that is called should either be short or pass the more extensive processing off to another task to allow the interrupt to return and normal processing to continue. </p>

<p>References <a class="el" href="struct_x_tmr_ctr.html#a19b7b38862e322c61d95f0f71f325f13">XTmrCtr::CallBackRef</a>, <a class="el" href="struct_x_tmr_ctr.html#a5cc0b10723d9bad1b654dab33ae56c23">XTmrCtr::Handler</a>, and <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>.</p>

</div>
</div>
<a class="anchor" id="ga93d796cf55144d6adb3c51fedf6c3b76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_SetOptions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>&gt;</code></p>

<p>Enables the specified options for the specified timer counter. </p>
<p>This function sets the options without regard to the current options of the driver. To prevent a loss of the current options, the user should call <a class="el" href="group__tmrctr__v4__0.html#gaaff209dc01c2946c239c6e5c1bdc1a5b" title="Get the options for the specified timer counter. ">XTmrCtr_GetOptions()</a> prior to this function and modify the retrieved options to pass into this function to prevent loss of the current options.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1). </td></tr>
    <tr><td class="paramname">Options</td><td>contains the desired options to be set or cleared. Setting the option to '1' enables the option, clearing the to '0' disables the option. The options are bit masks such that multiple options may be set or cleared. The options are described in <a class="el" href="xtmrctr_8h.html">xtmrctr.h</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga74b790866611a3ab1e96700feb48f6ea"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_SetResetValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>ResetValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>Set the reset value for the specified timer counter. </p>
<p>This is the value that is loaded into the timer counter when it is reset. This value is also loaded when the timer counter is started.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1). </td></tr>
    <tr><td class="paramname">ResetValue</td><td>contains the value to be used to reset the timer counter.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga38a380fdcb3114c3db51524a8182c4ad">XTC_TLR_OFFSET</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="ga009c17ab4fcedf73279638dd97b6edd4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_Start </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>Starts the specified timer counter of the device such that it starts running. </p>
<p>The timer counter is reset before it is started and the reset value is loaded into the timer counter.</p>
<p>If interrupt mode is specified in the options, it is necessary for the caller to connect the interrupt handler of the timer/counter to the interrupt source, typically an interrupt controller, and enable the interrupt within the interrupt controller.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="struct_x_tmr_ctr.html#aa273d27a5f60d8b003eb83247aca3341">XTmrCtr::IsStartedTmrCtr0</a>, <a class="el" href="struct_x_tmr_ctr.html#adcc945170ebc1ae68a01ba548ad60b0d">XTmrCtr::IsStartedTmrCtr1</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7cbbacf96f3f51bcd12d5826b03e620">XTC_CSR_ENABLE_TMR_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa10a23e3e387b53bac89f97cc5adf455">XTC_CSR_LOAD_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>.</p>

</div>
</div>
<a class="anchor" id="gab8156ff2a16b8efc0fcd3ed2b7ecf91a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XTmrCtr_Stop </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_tmr_ctr.html">XTmrCtr</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>TmrCtrNumber</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr_8c.html">xtmrctr.c</a>&gt;</code></p>

<p>Stops the timer counter by disabling it. </p>
<p>It is the callers' responsibility to disconnect the interrupt handler of the timer_counter from the interrupt source, typically an interrupt controller, and disable the interrupt within the interrupt controller.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_tmr_ctr.html" title="The XTmrCtr driver instance data. ">XTmrCtr</a> instance. </td></tr>
    <tr><td class="paramname">TmrCtrNumber</td><td>is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_tmr_ctr.html#ae65c2b8939adb3aa2c5ab4aec2a018af">XTmrCtr::BaseAddress</a>, <a class="el" href="struct_x_tmr_ctr.html#a6e340e798d785abfe551a776fd6f7bb9">XTmrCtr::IsReady</a>, <a class="el" href="struct_x_tmr_ctr.html#aa273d27a5f60d8b003eb83247aca3341">XTmrCtr::IsStartedTmrCtr0</a>, <a class="el" href="struct_x_tmr_ctr.html#adcc945170ebc1ae68a01ba548ad60b0d">XTmrCtr::IsStartedTmrCtr1</a>, <a class="el" href="group__tmrctr__v4__0.html#gaa7cbbacf96f3f51bcd12d5826b03e620">XTC_CSR_ENABLE_TMR_MASK</a>, <a class="el" href="group__tmrctr__v4__0.html#gaba99b973ef1f13bf0a2716cf52ca5319">XTC_DEVICE_TIMER_COUNT</a>, <a class="el" href="group__tmrctr__v4__0.html#ga81c9a818cb57cf5f106cf5a3b7c3c59f">XTC_TCSR_OFFSET</a>, <a class="el" href="group__tmrctr__v4__0.html#gaea427162ce7e92fd08afb7ee1cc1c12e">XTmrCtr_ReadReg</a>, and <a class="el" href="group__tmrctr__v4__0.html#ga56d9c2d54afce39c3693356e3892547f">XTmrCtr_WriteReg</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="ga5ce980ccbed0b805d08e295f71dbade7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_tmr_ctr___config.html">XTmrCtr_Config</a> XTmrCtr_ConfigTable[XPAR_XTMRCTR_NUM_INSTANCES]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__sinit_8c.html">xtmrctr_sinit.c</a>&gt;</code></p>

<p>The timer/counter configuration table, sized by the number of instances defined in xparameters.h. </p>

</div>
</div>
<a class="anchor" id="gab696b83980f59544e04b19249734883d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_tmr_ctr___config.html">XTmrCtr_Config</a> XTmrCtr_ConfigTable[]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>#include &lt;<a class="el" href="xtmrctr__g_8c.html">xtmrctr_g.c</a>&gt;</code></p>
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line">}</div>
</div><!-- fragment -->
<p>The timer/counter configuration table, sized by the number of instances defined in xparameters.h. </p>

</div>
</div>
</div><!-- contents -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
